from django.urls import path
from django.views.generic import detail

#从当前应用的views模块导入所有的视图
from.views import *

urlpatterns = [
    path('.html',commodityView,name='commodity'),#商品列表
    path('detail.<int:id>.html',detailView,name='detail'),#商品详情
    #商品收藏路由
    #访问路径：域名/应用名/collect.html
    path('collect.html',collectView,name='collect'),
]